#ifndef __TIME_H__
#define __TIME_H__

#include <string>
#include <iostream>

namespace stock_trade{

class Time{
public:
    Time(int hour, int minute, int second):hour(hour), minute(minute), second(second){}
    Time(std::string strTime);
    Time(){}
    Time GetNextTime();
    bool operator==(const Time& time) const;
    bool operator>(const Time& time) const;
    bool operator<(const Time& time) const;
    bool operator>=(const Time& time) const;
    bool operator<=(const Time& time) const;
    int operator-(const Time& time) const;
    Time operator++();
//    friend std::ostream& operator<<(std::ostream& os, const Time& time);
    int hour;
    int minute;
    int second;
};
}
std::ostream& operator<<(std::ostream& os, const stock_trade::Time& time);
stock_trade::Time GetNow();
#endif
